package com.ruoyi.develop.goodsSaleMaterialDetail.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.develop.goodsSaleMaterial.domain.GoodsSaleMaterial;
import com.ruoyi.develop.lvRukumingxi.domain.LvRukumingxi;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售产品物料选用明细对象 goods_sale_material_detail
 *
 * @author qh
 * @date 2025-01-04
 */
public class GoodsSaleMaterialDetail extends BaseEntity {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private String id;

    /** 销售产品id */
    @Excel(name = "销售产品id")
    private String gsaleId;

    /** 产品/物料id */
    @Excel(name = "产品/物料id")
    private String goodsId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String goodsCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String goodsName;

    /** 物料类型 0-金具 1-产品 */
    @Excel(name = "物料类型 0-金具 1-产品")
    private String goodsType;

    /** 物料型号明细 */
    @Excel(name = "物料型号明细")
    private String goodsBrand;

    /** 物料型号 */
    @Excel(name = "物料型号")
    private String goodModel;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String goodsUnit;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private BigDecimal goodsCount;

    /** 物料单价 */
    @Excel(name = "物料单价")
    private BigDecimal goodsBuyPrice;

    /** 物料总价 */
    @Excel(name = "物料总价")
    private BigDecimal goodsBuyTotal;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 销售人姓名 */
    @Excel(name = "销售人姓名")
    private String saleName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String projectId;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String projectName;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String projectNo;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 使用订单id */
    @Excel(name = "使用订单id")
    private String proId;

    /** 使用订单编号 */
    @Excel(name = "使用订单编号")
    private String proNo;

    /** 使用产品id */
    @Excel(name = "使用产品id")
    private String goodSaleId;

    /** 使用产品编号 */
    @Excel(name = "使用产品编号")
    private String goodCode;

    /** 使用产品型号 */
    @Excel(name = "使用产品型号")
    private String goodXinghao;

    /** 使用数量 */
    @Excel(name = "使用数量")
    private BigDecimal useCount;

    /** 库存入库id */
    @Excel(name = "库存入库id")
    private String rukuId;

    /** 入库批次号 */
    @Excel(name = "入库批次号")
    private String rukuNos;

    /** 领料人 */
    @Excel(name = "领料人")
    private String userName;

    /** 领料人id */
    @Excel(name = "领料人id")
    private String userId;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    /** 领料日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @Excel(name = "领料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useDate;

    private List<LvRukumingxi> columns;
    private String materialId;
    private String yifahuomingxiId;
    private String factoryGoodssaleId;
    private String factoryProdNo;
    private String factoryProdId;

    private String produceId;
    private String saleAllId;
    private String produceNo;
    private String parentId;
    private String materialChildId;

    private String goodName;
    private String goodsSaleId;

    public String getGoodsSaleId() {
        return goodsSaleId;
    }

    public void setGoodsSaleId(String goodsSaleId) {
        this.goodsSaleId = goodsSaleId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getMaterialChildId() {
        return materialChildId;
    }

    public void setMaterialChildId(String materialChildId) {
        this.materialChildId = materialChildId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getProduceNo() {
        return produceNo;
    }

    public void setProduceNo(String produceNo) {
        this.produceNo = produceNo;
    }

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId;
    }

    public String getSaleAllId() {
        return saleAllId;
    }

    public void setSaleAllId(String saleAllId) {
        this.saleAllId = saleAllId;
    }

    public String getFactoryProdId() {
        return factoryProdId;
    }

    public void setFactoryProdId(String factoryProdId) {
        this.factoryProdId = factoryProdId;
    }

    public String getFactoryGoodssaleId() {
        return factoryGoodssaleId;
    }

    public void setFactoryGoodssaleId(String factoryGoodssaleId) {
        this.factoryGoodssaleId = factoryGoodssaleId;
    }

    public String getFactoryProdNo() {
        return factoryProdNo;
    }

    public void setFactoryProdNo(String factoryProdNo) {
        this.factoryProdNo = factoryProdNo;
    }

    public String getYifahuomingxiId() {
        return yifahuomingxiId;
    }

    public void setYifahuomingxiId(String yifahuomingxiId) {
        this.yifahuomingxiId = yifahuomingxiId;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public List<LvRukumingxi> getColumns() {
        return columns;
    }

    public void setColumns(List<LvRukumingxi> columns) {
        this.columns = columns;
    }

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setGsaleId(String gsaleId)
            {
            this.gsaleId = gsaleId;
            }

    public String getGsaleId()
            {
            return gsaleId;
            }
    public void setGoodsId(String goodsId)
            {
            this.goodsId = goodsId;
            }

    public String getGoodsId()
            {
            return goodsId;
            }
    public void setGoodsCode(String goodsCode)
            {
            this.goodsCode = goodsCode;
            }

    public String getGoodsCode()
            {
            return goodsCode;
            }
    public void setGoodsName(String goodsName)
            {
            this.goodsName = goodsName;
            }

    public String getGoodsName()
            {
            return goodsName;
            }
    public void setGoodsType(String goodsType)
            {
            this.goodsType = goodsType;
            }

    public String getGoodsType()
            {
            return goodsType;
            }
    public void setGoodsBrand(String goodsBrand)
            {
            this.goodsBrand = goodsBrand;
            }

    public String getGoodsBrand()
            {
            return goodsBrand;
            }
    public void setGoodModel(String goodModel)
            {
            this.goodModel = goodModel;
            }

    public String getGoodModel()
            {
            return goodModel;
            }
    public void setGoodsUnit(String goodsUnit)
            {
            this.goodsUnit = goodsUnit;
            }

    public String getGoodsUnit()
            {
            return goodsUnit;
            }
    public void setGoodsCount(BigDecimal goodsCount)
            {
            this.goodsCount = goodsCount;
            }

    public BigDecimal getGoodsCount()
            {
            return goodsCount;
            }
    public void setGoodsBuyPrice(BigDecimal goodsBuyPrice)
            {
            this.goodsBuyPrice = goodsBuyPrice;
            }

    public BigDecimal getGoodsBuyPrice()
            {
            return goodsBuyPrice;
            }
    public void setGoodsBuyTotal(BigDecimal goodsBuyTotal)
            {
            this.goodsBuyTotal = goodsBuyTotal;
            }

    public BigDecimal getGoodsBuyTotal()
            {
            return goodsBuyTotal;
            }
    public void setSupplierId(String supplierId)
            {
            this.supplierId = supplierId;
            }

    public String getSupplierId()
            {
            return supplierId;
            }
    public void setSupplierName(String supplierName)
            {
            this.supplierName = supplierName;
            }

    public String getSupplierName()
            {
            return supplierName;
            }
    public void setSaleName(String saleName)
            {
            this.saleName = saleName;
            }

    public String getSaleName()
            {
            return saleName;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }
    public void setProjectId(String projectId)
            {
            this.projectId = projectId;
            }

    public String getProjectId()
            {
            return projectId;
            }
    public void setProjectName(String projectName)
            {
            this.projectName = projectName;
            }

    public String getProjectName()
            {
            return projectName;
            }
    public void setProjectNo(String projectNo)
            {
            this.projectNo = projectNo;
            }

    public String getProjectNo()
            {
            return projectNo;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setProId(String proId)
            {
            this.proId = proId;
            }

    public String getProId()
            {
            return proId;
            }
    public void setProNo(String proNo)
            {
            this.proNo = proNo;
            }

    public String getProNo()
            {
            return proNo;
            }
    public void setGoodSaleId(String goodSaleId)
            {
            this.goodSaleId = goodSaleId;
            }

    public String getGoodSaleId()
            {
            return goodSaleId;
            }
    public void setGoodCode(String goodCode)
            {
            this.goodCode = goodCode;
            }

    public String getGoodCode()
            {
            return goodCode;
            }
    public void setGoodXinghao(String goodXinghao)
            {
            this.goodXinghao = goodXinghao;
            }

    public String getGoodXinghao()
            {
            return goodXinghao;
            }
    public void setUseCount(BigDecimal useCount)
            {
            this.useCount = useCount;
            }

    public BigDecimal getUseCount()
            {
            return useCount;
            }
    public void setRukuId(String rukuId)
            {
            this.rukuId = rukuId;
            }

    public String getRukuId()
            {
            return rukuId;
            }
    public void setRukuNos(String rukuNos)
            {
            this.rukuNos = rukuNos;
            }

    public String getRukuNos()
            {
            return rukuNos;
            }
    public void setUserName(String userName)
            {
            this.userName = userName;
            }

    public String getUserName()
            {
            return userName;
            }
    public void setUserId(String userId)
            {
            this.userId = userId;
            }

    public String getUserId()
            {
            return userId;
            }
    public void setUseDate(Date useDate)
            {
            this.useDate = useDate;
            }

    public Date getUseDate()
            {
            return useDate;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("gsaleId",getGsaleId())
            .append("goodsId",getGoodsId())
            .append("goodsCode",getGoodsCode())
            .append("goodsName",getGoodsName())
            .append("goodsType",getGoodsType())
            .append("goodsBrand",getGoodsBrand())
            .append("goodModel",getGoodModel())
            .append("goodsUnit",getGoodsUnit())
            .append("goodsCount",getGoodsCount())
            .append("goodsBuyPrice",getGoodsBuyPrice())
            .append("goodsBuyTotal",getGoodsBuyTotal())
            .append("supplierId",getSupplierId())
            .append("supplierName",getSupplierName())
            .append("saleName",getSaleName())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
            .append("projectId",getProjectId())
            .append("projectName",getProjectName())
            .append("projectNo",getProjectNo())
            .append("status",getStatus())
            .append("proId",getProId())
            .append("proNo",getProNo())
            .append("goodSaleId",getGoodSaleId())
            .append("goodCode",getGoodCode())
            .append("goodXinghao",getGoodXinghao())
            .append("useCount",getUseCount())
            .append("rukuId",getRukuId())
            .append("rukuNos",getRukuNos())
            .append("userName",getUserName())
            .append("userId",getUserId())
            .append("useDate",getUseDate())
        .toString();
    }
}
